package sys.dao;

import org.apache.ibatis.annotations.*;
import sys.entity.Student;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentDao {



    @Insert("insert into s_t values(null,#{sid},#{tid})")
    void addXidAndUid(@Param("sid") Integer sid, @Param("tid") Integer tid);

    void addD(Student student);

    List<Student> findPages(Map serachMap);
    
    @Delete("delete from s_t where sid=#{id}")
    void delBySid(Integer id);

    void editStu(Student student);

    Student findById(Integer id);

    @Select("select tid from s_t where sid=#{id}")
    List<Integer> selectTidBySid(Integer id);
}
